package org.xteam.sled.semantic;

import org.xteam.parser.runtime.Span;
import org.xteam.sled.semantic.exp.Exp;


public class InstanceOperand extends OperandType {

	private ConstructorType cnstType;

	public InstanceOperand(ConstructorType cnstType) {
		this.cnstType = cnstType;
	}

	@Override
	public Exp projectInt(IEvaluationContext context, Span span, Exp base) {
		context.reportError(span, "not an integer expression");
		return null;
	}

	public ConstructorType getConstructorType() {
		return cnstType;
	}

	@Override
	public Exp makeExpression(Exp e, boolean relocatable) {
		return e;
	}

}
